import os
import time
		
#while 1:
#	for i in range(10):
#		command="echo \""+str(i)+"\">/dev/rfcomm1"
#		print command
#		os.system(command)
#		time.sleep(1)
		
		
while 1:
	for i in range(10):
		command="echo \""+str(i)+"\n\r\">/dev/rfcomm1"
		print command
		os.system(command)
		time.sleep(1)
	
	
